package com.hsjk.szwj.module.train.convert;

import com.hsjk.szwj.module.train.api.dto.DivisionReceiverDTO;
import com.hsjk.szwj.module.train.controller.admin.vo.AdminSetSkuDivisionReqVO;
import com.hsjk.szwj.module.train.controller.admin.vo.AdminSkuDivisionListRespVO;
import com.hsjk.szwj.module.train.dal.dataobject.product.SkuDivisionMappingDO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * @author chenjiawei
 * @desc
 * @Date 2023/12/04 23:17
 **/
@Mapper
public interface SkuDivisionConvert {
    SkuDivisionConvert INSTANCE = Mappers.getMapper(SkuDivisionConvert.class);

    List<SkuDivisionMappingDO> convertSkuDivisionMappings(List<AdminSetSkuDivisionReqVO> reqVOS);

    SkuDivisionMappingDO convertSkuDivisionMappingDO(AdminSetSkuDivisionReqVO reqVO);

    List<AdminSkuDivisionListRespVO> convertAdminSkuDivisionListRespVO(List<SkuDivisionMappingDO> skuDivisionMappingDOS);

    List<DivisionReceiverDTO> convertDivisionReceiverList(List<SkuDivisionMappingDO> doList);
}
